package com.swpu.cbg.cnshop;

/**
 * Created by chenboge on 16/2/4.
 */
public class Constans {

    public static final String DES_KEY = "Cniao5_123456";

    public static final String USER_JSON = "user";

    public static final String TOKEN = "user_token";

    public static class API {

        public static final String CAMPAIGN_ID = "campaignId";

        public static final String TAG_WARE = "ware";

        public static final String BASE_URL = "http://112.124.22.238:8081/course_api/";

        public static final String REG = BASE_URL + "auth/reg";

        public static final String HOME_TOP_URL = BASE_URL + "banner/query";

        public static final String LOGIN = BASE_URL + "auth/login";

        public static final String REGISTER = BASE_URL + "auth/reg";

        public static final String HOME_CONTENT__URL = BASE_URL + "campaign/recommend";

        public static final String HOT_CONTENT = BASE_URL + "wares/hot";

        public static final String CATAGORY_LEFT_URL = BASE_URL + "category/list";

        public static final String CATAGORY_CONTENT_URL = BASE_URL + "wares/list";

        public static final String CAMPAIGN_URL = BASE_URL + "wares/campaign/list";

        public static final String WARE_DETAIL = BASE_URL + "wares/detail.html";

        public static final String USER_DETAIL = BASE_URL + "user/get?id=1";

        public static final String ORDER_CREATE = BASE_URL + "/order/create";

        public static final String ORDER_COMPLEPE = BASE_URL + "/order/complete";

        public static final String ADDRESS_LIST = BASE_URL + "addr/list";

        public static final String ADDRESS_CREATE = BASE_URL + "addr/create";

        public static final String ADDRESS_UPDATE = BASE_URL + "addr/update";

        public static final String ORDER_LIST = BASE_URL + "order/list";

        public static final String FAVORITE_LIST = BASE_URL + "favorite/list";

        public static final String FAVORITE_CREATE = BASE_URL + "favorite/create";

        public static final String FAVORITE_DELETE = BASE_URL + "favorite/del";
    }

    public static class State {
        public static final int STATE_OK = 1000;

        public static final int REQUEST_CODE_PAYMENT = 1;

        public static final int REQUEST_CODE = 0;
    }

    public static class BaseUserInf {
        public static final String PHONE = "phone";

        public static final String PASSWORD = "password";

        public static final String COUNTRYCODE = "code";
    }

}
